<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			/*
			创建一个数组
			所谓的遍历数组，就是将数组中所有的元素都取出来
			*/
			var arr = ["猪八戒","唐僧","傻子","牛啊"];
			for(var i = 0;i < arr.length;i++){
				console.log(arr[i]);
			}
		</script>
		
	</body>
</html>
